<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>Message</title>
		<meta name="description" content="Kenny is a Dashboard & Admin Site Responsive Template by hencework." />
		<meta name="keywords" content="admin, admin dashboard, admin template, cms, crm, Kenny Admin, kennyadmin, premium admin templates, responsive admin, sass, panel, software, ui, visualization, web app, application" />
		<meta name="author" content="hencework"/>
		
		<!-- Favicon -->
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="icon" href="favicon.ico" type="image/x-icon">
		
		<!-- vector map CSS -->
		<link href="<{$template_dir}>home/com_center/vendors/bower_components/jasny-bootstrap/dist/css/jasny-bootstrap.min.css" rel="stylesheet" type="text/css"/>
		
		<!--alerts CSS -->
		<link href="<{$template_dir}>home/com_center/vendors/bower_components/sweetalert/dist/sweetalert.css" rel="stylesheet" type="text/css">
		
		<!-- Custom CSS -->
		<link href="<{$template_dir}>home/com_center/dist/css/style.css" rel="stylesheet" type="text/css">
	</head>
    

	<body>
		<!--Preloader-->
		<div class="preloader-it">
			<div class="la-anim-1"></div>
		</div>
		<!--/Preloader-->
		
		<div class="wrapper pa-0">
		
			<!-- Main Content -->
			<div class="page-wrapper pa-0 ma-0">
				<div class="container-fluid">
					<!-- Row -->
					<div class="table-struct full-width full-height">
						<div class="table-cell vertical-align-middle">
							<div class="auth-form  ml-auto mr-auto no-float">
								<div class="panel panel-default card-view mb-0">
									<div class="panel-heading">
										<div class="pull-left">
											<h6 class="panel-title txt-dark" style='font-size: 16px;  font-family: 微软雅黑;'>登录祥付宝电子发票平台</h6>
										</div>
										<div class="clearfix"></div>
									</div>
									<div class="panel-wrapper collapse in">
										<div class="panel-body">
											<div class="row">
												<div class="col-sm-12 col-xs-12">
													<div class="form-wrap">
														<form action="/core/checkLoginChnnerUser.html" method="post">
															<div class="form-group">
																<label class="control-label mb-10" for="exampleInputEmail_2">帐号</label>
																<div class="input-group">
																	<input type="text"  name='name' class="form-control" required="" id="exampleInputEmail_2" placeholder="Enter email">
																	<div class="input-group-addon"><i class="icon-envelope-open"></i></div>
																</div>
															</div>
															<div class="form-group">
																<label class="control-label mb-10" for="exampleInputpwd_2">密码</label>
																<div class="input-group">
																	<input type="password" name='password' class="form-control" required="" id="exampleInputpwd_2" placeholder="Enter pwd">
																	<div class="input-group-addon"><i class="icon-lock"></i></div>
																</div>
															</div>
															
															<div class="form-group">
																<div class="checkbox checkbox-success pr-10 pull-left">
                                                               <!-- required=""-->
																	<input id="checkbox_2"  type="checkbox">
																	<label for="checkbox_2"> 保持登录状态 </label>
																</div>
																<a class="capitalize-font txt-danger block pt-5 pull-right" href="login.html#">忘记密码</a>
																<div class="clearfix"></div>
															</div>
															<div class="form-group">
																<button type="button" id='login' onclick="chenklogin()" class="btn btn-success btn-block">登录</button>
															</div>
															<div class="form-group mb-0">
																<span class="inline-block pr-5">Don't have an account?</span>
																<a class="inline-block txt-danger" href="signup-page.html">&nbsp;&nbsp;&nbsp;&nbsp; 注 册 </a>
															</div>	
														</form>
													</div>
												</div>	
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- /Row -->	
				</div>
				
			</div>
			<!-- /Main Content -->
		
		</div>
		<!-- /#wrapper -->
		
        
       
        
		<!-- JavaScript -->
		
		<!-- jQuery -->
		<script src="<{$template_dir}>home/com_center/vendors/bower_components/jquery/dist/jquery.min.js"></script>
		
		<!-- Bootstrap Core JavaScript -->
		<script src="<{$template_dir}>home/com_center/vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
		<script src="<{$template_dir}>home/com_center/vendors/bower_components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js"></script>
		
		<!-- Slimscroll JavaScript -->
		<script src="<{$template_dir}>home/com_center/dist/js/jquery.slimscroll.js"></script>
	
		<!-- Fancy Dropdown JS -->
		<script src="<{$template_dir}>home/com_center/dist/js/dropdown-bootstrap-extended.js"></script>
		
        <!-- Sweet-Alert  -->
		<script src="<{$template_dir}>home/com_center/vendors/bower_components/sweetalert/dist/sweetalert.min.js"></script>

		<!-- Init JavaScript -->
		<script src="<{$template_dir}>home/com_center/dist/js/init.js"></script>
        
        
      
	</body>


<script>


function chenklogin(){
	
	
	 $.ajax({
	   type: "POST",
	   url: "/core/checkLoginChnnerUser.html?is_ajax=1",
	   data:$("form").serialize(),
	   success: function(data){
		   if(data==1){
			   
			   
			   swal({title:"登录成功",  text:"3秒后自动跳转",  type:'success'}, function(data){
				   
				   location.href='/center/index.html';
				   
			   });
			  setTimeout("location.href='/center/index.html'",3000)
		   }else{
			   swal("登录失败",  "请检查帐号密码",  'error')
		   }
	   }
	 });
 
	
	
	
	 
}

</script>
</html>
